package com.huiyujiaoyu.powertime.model;



import java.util.ArrayList;
import java.util.List;
import java.util.Random;

/**
 * Created by yujunlong on 2017/7/19.
 */

public class TestDataUtils {
    private static  Random random = new Random();
    public static List<SimpleBean> getDatas(int size){
        List<SimpleBean> datas = new ArrayList<>();
        for (int i = 0; i <size ; i++) {
            SimpleBean sb = new SimpleBean();
            sb.type = i;
            sb.title = getTitle().get(i);
            datas.add(sb);
        }
        return datas;
    }
    public static List<String> getTitle(){
        List<String> datas = new ArrayList<>();
        datas.add("热门排行");
        datas.add("新歌速递");
        datas.add("精品歌单");
        datas.add("味蕾推荐");
        datas.add("热销专辑");
        datas.add("主题精选");
        return  datas;
    }

    public static List<ConfigBean> getCBS(int size){
        List<ConfigBean> datas = new ArrayList<>();
        for (int i = 0; i < size; i++) {
            ConfigBean cb = new ConfigBean();
             cb.isOk = false;
            cb.money = getMoney(i);
            datas.add(cb);
        }
        return  datas;
    }

    public static int getMoney(int pos){
        int money = 0;
        switch (pos) {
            case 0:
                money = 3;
                break;
            case 1:
                money = 6;
                break;
            case 2:
                money = 30;
                break;
            case 3:
                money = 108;
                break;
            case 4:
                money = 328;
                break;
            case 5:
                money = 388;
                break;
        }
        return money;
    }

    public static  List<String> getImages(){
        List<String> datas = new ArrayList<>();
        datas.add("http://img0.imgtn.bdimg.com/it/u=1799761719,4287159889&fm=26&gp=0.jpg");
        datas.add("http://img5.imgtn.bdimg.com/it/u=3293511323,1849650934&fm=200&gp=0.jpg");
        datas.add("http://img5.imgtn.bdimg.com/it/u=593198571,1076156438&fm=200&gp=0.jpg");
        datas.add("http://img4.imgtn.bdimg.com/it/u=837901576,4137071122&fm=26&gp=0.jpg");
        datas.add("http://img1.imgtn.bdimg.com/it/u=1358296626,2732394121&fm=26&gp=0.jpg");
        return datas;
    }

    public static String getIS(){
        return  getImages().get(random.nextInt(getImages().size()));
    }
}
